package com.leo.oplayer.model;

import android.database.Cursor;

public class ConDetail {
	
	public static final Integer TEL_CALL = 0;
	
	public static final Integer TEL_MSG = 1;
	
	public static final String TABLE_NAME = "con_detail";
	public static final String _ID = "_id";
	public static final String _PHONEID = "person_id";
	public static final String _FLAG = "flag";
	public static final String _CON_START_TIME = "con_start_time";
	public static final String _CON_END_TIME = "con_end_time";
	public static final String _DURATE_TIME = "durate_time";
	public static final String _REMARK = "remark";	
	
	private Integer id;
	
	private String phoneId;
	
	/** 
	 * 0--表示电话 1--表示短信 
	 */
	private Integer flag;
	
	private String conStartTime;
	
	private String conEndTime;
	
	private Integer durateTime;
	
	private String remark;
	
	public ConDetail(){}
	
	public ConDetail(Cursor cursor){
		this.id = cursor.getInt(cursor.getColumnIndex(_ID));
		this.phoneId = cursor.getString(cursor.getColumnIndex(_PHONEID));
		this.flag = cursor.getInt(cursor.getColumnIndex(_FLAG));
		this.conStartTime = cursor.getString(cursor.getColumnIndex(_CON_START_TIME));
		this.conEndTime = cursor.getString(cursor.getColumnIndex(_CON_END_TIME));
		this.durateTime = cursor.getInt(cursor.getColumnIndex(_DURATE_TIME));
		this.remark = cursor.getString(cursor.getColumnIndex(_REMARK));
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getPhoneId() {
		return phoneId;
	}

	public void setPhoneId(String phoneId) {
		this.phoneId = phoneId;
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public String getConStartTime() {
		return conStartTime;
	}

	public void setConStartTime(String conStartTime) {
		this.conStartTime = conStartTime;
	}

	public String getConEndTime() {
		return conEndTime;
	}

	public void setConEndTime(String conEndTime) {
		this.conEndTime = conEndTime;
	}

	public Integer getDurateTime() {
		return durateTime;
	}

	public void setDurateTime(Integer durateTime) {
		this.durateTime = durateTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
